package com.cqupt.sendMes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

@Data
@TableName("task")
public class Task {
    @TableId(type = IdType.AUTO)
    private Integer id;
    //任务名
    private String taskName;
    //任务类型
    private Integer taskType;
    //通知发送内容
    private String taskContent;
    //任务激活状态
    private String taskStatus;
    //任务创建人ID
    private Integer taskUserId;
    //任务创建人
    private String taskUsername;
    //任务状态
    private Integer status;

    //任务执行日期
    private LocalDate executionDate;
    //任务执行时间
    private LocalTime executionTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

}
